import { createRouter, createWebHashHistory } from "vue-router";

import Home from "./page/home.vue";
import Login from "./page/login.vue";
import zhuCe from "./page/zhuce.vue";
import User from "./page/user.vue";
import xiangQing from "./page/xiangqing.vue";
import Search from "./page/search.vue";
import gouWuChe from "./page/gouwuche.vue";
import City from "./page/city.vue"
const routes = [
    {
        path: '/',
        redirect: '/home'
    },
    {
        path: '/home',
        component: Home,

    },
    {
        path: '/login',
        component: Login,
    },
    {
        path: '/zhuce',
        component: zhuCe,
    },
    {
        path: '/user',
        component: User,
    },
    {
        path: '/xiangqing/:id',
        component: xiangQing,
    },
    {
        path: '/search',
        component: Search,
    },
    {
        path: '/gouwuche',
        component: gouWuChe,
    },
    {
        path: '/city',
        component: City,
    },
]

const router = createRouter({
    history: createWebHashHistory('/one'),
    routes,
})

export default router
